﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Media;

namespace CityDashboard.Models
{
    public class TopInvestorModel:INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        protected void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
        public TopInvestorModel(double number)
        {
            Number = number;
            InvestorName = "Please set TopInvestorModel.InvesterName property";
        }
        public TopInvestorModel(double number, string investorName)
        {
            Number = number;
            InvestorName = investorName;
        }

        double _number;
        public double Number
        {
            get { return _number; }
            set
            {
                _number = value;
                OnPropertyChanged("Number");
            }
        }

        string _investorName;
        public string InvestorName
        {
            get { return _investorName; }
            set
            {
                _investorName = value;
                OnPropertyChanged("InvestorName");
            }
        }

        double _percentage;
        public double Percentage
        {
            get { return _percentage;}
            set
            {
                _percentage = value;
                OnPropertyChanged("Percentage");
            }
        }

        Brush _color;
        public Brush Color
        {
            get { return _color; }
            set
            {
                _color = value;
                OnPropertyChanged("Color");
            }
        }
    }
}
